package cn.hp.mapper;

import cn.hp.entity.User;

import java.util.List;
import java.util.Map;

public interface UserMapper {
    /**
     * 登录
     * @param user 用户
     * @return 用户信息
     */
    List<User> dologin(User user);

    User selectUserById(Integer id);

    int insertUser(User user);

    int updateUser(User user);

    int deleteUserById(Integer id);
    List<User> selectUserList(User user);

    Map checkEmail(String email);
}
